package com.eian.boot.module.system.dept.model.dto;

import com.eian.boot.common.core.model.core.BaseDTO;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 创建部门请求
 *
 * @author alex.meng
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DeptCreateRequest extends BaseDTO {

    @NotNull(message = "父部门ID不能为空")
    private Long parentId;

    @NotBlank(message = "部门名称不能为空")
    private String deptName;

    @NotBlank(message = "部门编码不能为空")
    private String deptCode;

    private Long leaderId;

    private String phone;

    private String email;

    private Integer sortOrder;

    private Integer status;
}

